<?php

namespace App\Models\Subscribe;

use Illuminate\Database\Eloquent\Model;

class Price extends Model
{
    protected $table = 'jxt_subscribe_price';

    const CREATED_AT = 'create_at';
    const UPDATED_AT = null;

    public static function options()
    {
        $options = static::select('id','monthNum as text')->get();
        $selectOption = [];
        foreach ($options as $option){
            $selectOption[$option->id] = $option->text . '月';
        }
        return $selectOption;
    }

}
